home *** CD-ROM | disk | FTP | other *** search
/ Shareware Grab Bag / Shareware Grab Bag.iso / 015 / m100prnt.arc / HYPHEN.DOC < prev    next >
Encoding:
Text File  |  1986-06-28  |  3.5 KB  |  48 lines

  1.     INTRODUCTION
  2.  
  3.     HYPHEN.100 is a companion program to FORMAT.100. It has two functions. First, it reads a text file and tells you how many 
  4. lines of N characters it will take to print it out with FORMAT.
  5.     Second, HYPHEN.100 can check each line of output, to determine if it is too long. If so, HYPHEN.100 displays the line and 
  6. lets you edit it, before writing it out to a new file.
  7.  
  8.     USING HYPHEN.100
  9.  
  10.     HYPHEN.100 creates a new file called RECEIVE.DO, which contains the hyphenated document. HYPHEN.100 first asks which file 
  11. you want, and then asks if you just want a line count.
  12.     If you type <y>, RECEIVE is opened as a dummy file only, and no text is put into it. Otherwise, HYPHEN.100 asks if you want
  13. the hyphenated file on tape. If you type <y>, the program opens CAS:RECEIVE as the new file (make sure you have a tape recorder
  14. hooked up in record mode). Otherwise, you must have enough free memory for the hyphenated file to go in RAM.
  15.     The program then asks how many characters you want to a line. Remember that HYPHEN.100 is supposed to read text like 
  16. FORMAT, so it won't automatically word-wrap long words. If you are just counting lines, the program runs until the text has 
  17. been scanned and displays the line lenth and count.
  18.     If you chose hyphenating, the program automatically writes a copy of your text file into RECEIVE.DO until it hits a line 
  19. which would be more than two characters longer than your 'line length'. It displays that line, stops and beeps for your 
  20. attention.
  21.     Press any key and a truncateed version of the line also appears, followed by a <_>. That is where the 'edited' line would 
  22. be cut off. A vertical arrow marks the point corresponding to the desired line length.
  23.     At the bottom of the screen are the editing commands:
  24.     <SPACE> adds another character from the long line to the 'edit' line.
  25.     <ENTER> simply copies the entire long line to the 'edit' line and returns to the main routine (in case you want to override
  26. the machine's judgement).
  27.     <-> adds a hyphen and a blank to the end of the edited line, and returns to the copy routine. The text in RECEIVE will now 
  28. have a hyphen+space in between the text at that point.
  29.     <b> just adds a blank and returns.
  30.     <x> doesn't alter the 'edit' line, but will force a line break at that point. It then returns to the main program. For 
  31. example, if the phrase 'hyphen+space' ran over the end of a line, <x> could be used to cut it in two.
  32.  
  33.     After the entire text file has been scanned and edited, HYPHEN.100 will display the number of lines of print it will take. 
  34. FORMAT should be used to print out RECEIVE.DO.
  35.  
  36.     CUSTOMIZING
  37.  
  38.     If you alter FORMAT, you should modify HYPHEN.100 as well:
  39.     If you change the word-break value from '4' in FORMAT (line 2300), change the same numbers in lines 300 and 550 of 
  40. HYPHEN.100.
  41.     If you change the underline or backspace characters in FORMAT, change line 70 in HYPHEN.100 accordingly.
  42.     You can change the line length limits in HYPHEN.100 without modifying FORMAT. The range of acceptable lengths is set by '6'
  43. in line 200. You can adjust this up or down as you wish-- lower ranges will give you a tighter right margin, but you'll have to
  44. edit more lines. Higher ranges will reduce editing, but give a sloppier margin.
  45.     You may also alter the point at which you start editing lines by changing the expressions "SU-2"in line 600 and "SU-1" in 
  46. line 640 (the latter expression should always be one larger than the former).
  47.  
  48.